﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NotSalecardDetailed.aspx.cs" Inherits="CardLogistics.Web.MainPage.CardRecovery.NotSaleCard.NotSalecardDetailed" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<%@ Register Src="../../../Controls/WebUserControl_ToolBar.ascx" TagName="WebUserControl_ToolBar"
    TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>制卡坏卡/未售问题卡明细</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../js/jquery.js"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/tblistjs.js" type="text/javascript"></script>
    <script src="../../../js/CreateControl.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#RecoveryNo").click(function () { //请选择回收单号
                var InfoType = document.getElementById("InfoType").value;
                $.tipsWindow({
                    ___title: "请选择回收单号",
                    ___content: "iframe:../../SelectPage/SelNotSaleCard.aspx?InfoType=" + InfoType,
                    ___width: "1000",
                    ___height: "500",
                    ___drag: "___boxTitle",
                    ___showbg: true
                });
            });
        })

        //搜索按钮执行函数
        function queryData() {
            var InfoType = document.getElementById("InfoType").value;
            var recoveryno = $("#RecoveryNo").val(); //回收单号
            ReportViewer.Stop();

            var DataURL = encodeURI("NotSalecardDetailedRpt.aspx?InfoType=" + InfoType + "&recoveryno=" + recoveryno);
            ReportViewer.DataURL = DataURL;

            //更新查询参数更新报表付标题，设置对应静态框的“Text”属性
            // ReportViewer.Report.ControlByName("SubTitle").AsStaticBox.Text = "日期范围：" + BeginDate + "至" + EndDate;

            ReportViewer.Start();
        }
    </script>
</head>
<body onload="queryData();">
    <form runat="server" id="f2">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
    <input type="hidden" id="InfoType" runat="server" />
    <div class="rightinfo">
        <ul class="seachform">
           <li>
                <label>
                    回收单号</label>
                <input id="RecoveryNo" runat="server" type="text"  readonly="readonly" style="width: 200px;"  class="dfinputImg" maxlength="25" />
                <asp:HiddenField ID="hf_RecoveryId" runat="server" />
            </li>
            <li>
                <label>
                    &nbsp;</label>
                <input id="btnSearch" type="button" class="scbtn" value="查询" onclick="queryData();" />
            </li>
        </ul>
        <script type="text/javascript">
            var divkuangH = $(window).height();
            var viewH = divkuangH - 117 + 20 - 1;
            var InfoType = document.getElementById("InfoType").value;
            if (InfoType == 0) {
                // 制卡坏卡明细
                CreateDisplayViewerEx("100%", viewH, '../../../grf/MakingBadCardDetailed.grf', "", false, "<param name=BorderStyle value=1>" +
                        "<param name='OnContentCellDblClick' value='OnContentCellDblClick'>");
            } else {
                //未售问题卡明细
                CreateDisplayViewerEx("100%", viewH, '../../../grf/NotSalecardDetailed.grf', "", false, "<param name=BorderStyle value=1>" +
                        "<param name='OnContentCellDblClick' value='OnContentCellDblClick'>");
            }
           
        </script>
    </div>
    </form>
</body>
</html>